from rest_framework.pagination import LimitOffsetPagination, PageNumberPagination


#
class ArticlePagination(LimitOffsetPagination):
    # 每页默认的条数
    default_limit = 3
    max_limit = 100

# class ArticlePagination(PageNumberPagination):
#     # 每页默认的条数
#     page_size = 3
#     #如果想要改变大小 需要给什么参数传值
#     page_size_query_param = 'size'
#     max_page_size = 100
